Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |wrapping_add

std/ops/num::|wrapping_add


Usage

|wrapping_add<N>(a, b)

Generics

◻ N: WrappingAdd

Parameters

↳ a: N
↳ b: N

Return

N


Add a and b, wrapping on bounds.

This function is infaillible and wrap if a + b reach boundary of the data type.